package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    //跳登录
    @RequestMapping("toIndex")
    public String toIndex(){
        return "index";
    }

    //跳注册
    @RequestMapping("toUserInsert")
    public String toUserInsert(){
        return "userInsert";
    }

    //跳首页
    @RequestMapping("toMain")
    public String toMain(){
        return "main";
    }

    //跳修改密码
    @RequestMapping("toUserUpdatePassword")
    public String toUserUpdatePassword(){
        return "userUpdatePassword";
    }

    //跳充值
    @RequestMapping("toUserCharge")
    public String toUserCharge(){
        return "userCharge";
    }

    //跳充值
    @RequestMapping("toNoDoorBorrow")
    public String toNoDoorBorrow(){
        return "noDoorBorrow";
    }

    @RequestMapping("showWelcome")
    public String showWelcome(){
        return "welcome";
    }

    @RequestMapping("orderlist")
    public String orderlist(){
        return "order-list";
    }

    @RequestMapping("addOrder")
    public String addOrder(){
        return "order-add";
    }

    @RequestMapping("orderView")
    public String orderView(){
        return "order-add";
    }

    @RequestMapping("toClassroomType")
    public String toClassroomType(){
        return "classroom-type";
    }
//3D立体图单独展示
    @RequestMapping("3dindex")
    public String index(){
        return "3d";
    }
}
